// gui_sdl_emu.h
#ifndef GUIEMU_SDL_H
#define GUIEMU_SDL_H

#include <SDL/SDL.h>
#include "calc.h"
#include "lcd.h"
#include <stdlib.h>
#include <sys/time.h>
#include "guilcd_sdl.h"

unsigned GetTickCount();
unsigned OnTimer(unsigned interval, void *param);
int getMSFromTimer(struct timeval startTime);
int getNumOfActiveCalcs();
void gui_draw();
void gui_frame_update();
struct timeval initMSTimer();
void printf_d( const char* format, ... );
bool start_main();
void OnKeyDown(SDL_KeyboardEvent& event);
void OnKeyUp(SDL_KeyboardEvent& event);
void OnQuit();
void OnResize(SDL_ResizeEvent& event);
void FinalizeButtons();
uint32_t OnTimer(unsigned interval, void *param);
#ifndef GUI_SDL_EMU
extern LPCALC lpCalc;
#endif
//wxFrame *mainFrame;

#endif
